# -*- encoding=utf8 -*-
__author__ = "jwjwchen"
"""函数文件，不可更改"""

from airtest.core.api import *
#-----------------------------------------------------
def wait_for_appearance_and_click(object):
    object.wait_for_appearance()
    print ("找到元素，准备点击")
    object.click()
    print ("已点击")
    
def init_idle_fish(package_name):
    '''初始化app'''
    stop_app(package_name)
    sleep(5)
    start_app(package_name)